package com.phonegap.breastmilk;

import com.phonegap.breastmilk.R;

import android.app.Activity;
import android.os.Bundle;
import android.view.KeyEvent;
import android.webkit.WebView;
import android.webkit.WebViewClient;

public class TabFacts extends Activity {
	
	public WebView mWebView;
	
	public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.tabfacts);
        
        mWebView = (WebView)findViewById(R.id.webView1);
        mWebView.loadUrl("http://m.breastmilkcounts.com");
	}
	
	@Override
    public boolean onKeyDown(int keyCode, KeyEvent event) {
        if ((keyCode == KeyEvent.KEYCODE_BACK) && mWebView.canGoBack()) {
        	mWebView.goBack();
            return true;
        }
        return super.onKeyDown(keyCode, event);
    }
}
